package comWorld.blog;

import java.util.List;

public class DraftInfos {
	private int userId;
	private List<BlogInfo> drafts;
	private int count;
	
	public DraftInfos() {
		userId = 0;
		drafts = null;
		count = 0;
	}

	
	public DraftInfos(int userId, List<BlogInfo> drafts) {
		this.userId = userId;
		this.drafts = drafts;
		count = drafts.size();
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}


	public List<BlogInfo> getDrafts() {
		return drafts;
	}


	public void setDrafts(List<BlogInfo> drafts) {
		this.drafts = drafts;
		count = drafts.size();
	}


	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

}
